<extend name="./public/operateMain.html" />
<block name="editArea">
<notempty name="zt">
<div class="alert alert-success alert-dismissable">
	<a href="{:U('Custp/custpInfo')}" class="close" type="button"
		data-dismiss="alert">&times;</a>
	{$zt}
</div>
</notempty> 
<div class="panel panel-primary">
	<div class="panel-heading">
		<span class="glyphicon glyphicon-th-list">&nbsp;</span>
		<b>公共客户</b>
		<a href="{:U('Main/main')}">
			<span class="glyphicon glyphicon-remove"
				style="float: right; color: white"></span>
		</a>
		<div class="row">
		<form id="pagerForm" class="col-xs-7" action="__URL__/custpInfo" method="post">
			<div class="input-group input-group-sm">
				<input type="text" class="form-control"
					name="keys" placeholder="关键字" />
				<div class="input-group-btn">
					<button type="submit" class="btn btn-default">
						<span class="glyphicon glyphicon-search"></span>
					</button>
					<button type="reset" class="btn btn-default">
						<b>清空查询</b></button>
					<a href="#dctsk" class="btn  btn-default" data-toggle="modal">
						<b>导出</b> </a>
				</div>
			</div>
		</form>
		</div>
	</div>
	<div class="editheight">
		<table class="table table-bordered table-hover table-condensed tablenowrap">
			<tr>
				<th data-order-direction='desc' data-order-field='id'>ID</th>
				<th>公司名称</th>
				<th data-order-direction='desc' data-order-field='fenlei'>进展</th>
				<th data-order-direction='desc' data-order-field='xcrq'>下次联系</th>
				<th>联系人</th>
				<th>手机号码</th>
				<th>QQ</th>
				<th>客户来源</th>
				<th data-order-direction='desc' data-order-field='uname'>更新人</th>
				<th data-order-direction='desc' data-order-field='addtime'>添加时间</th>
				<th data-order-direction='desc' data-order-field='updatetime'>更新时间</th>
				<th>操作</th>
			</tr>
			<volist id="v" name="list">
			<tr>
				<td>{$v.id}</td>
				<td>{$v.title|msubstr=###,0,20}</td>
				<td>{$v.fenlei}</td>
				<td>{$v.xcrq|substr=###,0,10}</td>
				<td>{$v.xingming|msubstr=###,0,20}</td>
				<td>{$v.phone|msubstr=###,0,20}</td>
				<td>{$v.qq|msubstr=###,0,20}</td>
				<td>{$v.type|msubstr=###,0,20}</td>
				<td>{$v.uname}</td>
				<td>{$v.addtime|substr=###,0,10}</td>
				<td>{$v.updatetime|substr=###,0,10}</td>
				<td>
					<a href="__URL__/edit/id/{$v['id']}"
						class="btn btn-xs btn-primary" >编辑</a>
					<a href="__URL__/del/id/{$v['id']}"
						class="btn btn-xs btn-primary" >挑入</a>
				</td>
			</tr>
			</volist>
		</table>
	</div>
	</div>
	<div class="text-center">{$page}</div>
	<div id="dctsk" class="modal">
		<div class="modal-dialog" style="width: 350px">
			<div class="modal-content">
				<div class="modal-header">
					<button class="close" data-dismiss="modal">&times;</button>
					<h4 class="modal-title">
						<span class="	glyphicon glyphicon-download-alt"></span>
						确定导出
					</h4>
				</div>
				<div class="modal-body">你确定要导出吗？</div>
				<div class="modal-footer">
					<a href="__URL__/outxls" class="dctsk btn btn-sm btn-primary">确定</a>
					<button class="btn btn-sm btn-default" data-dismiss="modal">取消</button>
				</div>
			</div>
		</div>
	</div>
</block>